package com.hang.gymmanager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 钱包表
 * @author wyq
 * @version v1.0.0
 * @explain
 * @date 2024/3/15 13:28
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("user_wallet")
public class WalletEntity {

    /**
     * 用户id
     */
    @TableId(value = "user_id" , type = IdType.AUTO)
    private Integer userId;

    /**
     * 余额
     */
    private BigDecimal balance;

}
